<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@page import="com.cattsoft.ssm.util.JsonUtil"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<title>登录页面</title>
</head>
<base href="<%=basePath%>">

<%response.setContentType("text/html;charset=UTF-8");%>
<body>
	中文显示
	<script>
	
	function handleJson(){
		
	var j={"name":"alex","address":
	{"city":"beijing","street":"yongjiabei road","postcode":"100094"}
			
	};
	alert("姓名："+j.name+"    "+"地址："+j.address.city);
	String a =JsonUtil.string2Json("{alex: 1234}");
	alert(a);
	}
	</script>


	<form action="login.action" method="post">
		<table border="1">
			<tr>
				<td>用户名：</td>
				<td><input type="text" name="username" /></td>
			</tr>
			<tr>
				<td>密码：</td>
				<td><input type="password" name="password" /></td>
			</tr>
			<tr>
				<td colspan="2"><input type="submit" value="确定" /></td>
				<td colspan="2"><input type="button" value="Json"
					onclick="handleJson()" /></td>
			</tr>
			</tr>
		</table>
	</form>
</body>
</html>